import { createApp } from "vue";

import App from "./App.vue";
import router from "./router";
import store from "./store";

import "element-plus/dist/index.css";
import ElementPlus from "element-plus";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

// Mock模拟数据 不是用时注释掉
import "@/api/mock/mock.js";

const app = createApp(App);
// 将 store 实例作为插件安装
app.use(store);
app.use(ElementPlus);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(router);

app.mount("#app");
